/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Test {
    public int add(int a,int b){
        int result=a+b;
        return result;
    }
    public float add(float a,float b){
        float result=a+b;
        return result;
    }
    public String add(String a,String b){
        String result=a+b;
        return result;
    }
public static void main(String args[]){
    Test atest=new Test();
    int x=10,y=20;
    int r=atest.add(x,y);
    System.out.println(x+"+"+y+"="+r);
    
    float x2 = 1.03f,y2 = 2.4f;
    float r2 = atest.add(x2, y2);
    System.out.println(x2+"+"+y2+"="+r2);
    
    String x3 = "hello",y3 = "world";
    String r3 = atest.add(x3, y3);
    System.out.println(x3+"+"+y3+"="+r3);
}
}
